package com.zhny.iot.sd.sfj.plugin.model;

import com.zhny.aiot.plugin.ActionValue;
import com.zhny.aiot.plugin.PropertyValue;
import com.zhny.aiot.plugin.model.*;
import lombok.Data;

@Data
public class SDFertilizerStoreEntry extends StoreEntity {
    @PropertyValue(alias = "水泵状态",description = "增压泵状态",unit = "",icon= IconConstract.Other,variableType= VariableType.Passage,actions={
            @ActionValue(name= Operate.Open,commandCode="openPump",eventType= EventType.Click),
            @ActionValue(name=Operate.Close,commandCode="closePump",eventType=EventType.Click)
    })
    private String pumpStatus;

    @PropertyValue(alias = "吸肥泵状态",description = "吸肥泵状态",unit = "",icon= IconConstract.Other,variableType= VariableType.Passage,actions={
            @ActionValue(name= Operate.Open,commandCode="openFert",eventType= EventType.Click),
            @ActionValue(name=Operate.Close,commandCode="closeFert",eventType=EventType.Click)
    })
    private String fertilizerPumpStatus;
    @PropertyValue(alias = "工作状态",description = "工作状态",unit = "",icon=IconConstract.EC,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="read",eventType=EventType.Click)
    })
    private String status;

    @PropertyValue(alias = "PH值",description = "管道中PH值",unit = "",icon=IconConstract.PH,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="read",eventType=EventType.Click)
    })
    private String ph;
    @PropertyValue(alias = "EC值",description = "管道中EC值",unit = "mS/cm",icon=IconConstract.EC,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="read",eventType=EventType.Click)
    })
    private String ec;
    @PropertyValue(alias = "压力值",description = "管道中压力值",unit = "MP",icon=IconConstract.Pressure,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="read",eventType=EventType.Click)
    })
    private String pressure;
}
